package com.wufeng.stream;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;

public class LambdaDemo {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("aaa", "bbb", "ccc", "ddd");
        list.stream().filter(a -> a.startsWith("a"))
//                .limit(2)
                .distinct()
                .forEach(System.out::println);
    }
}
